package org.macpro.alone.server.framework.base;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AloneBeanFactory {
	private static final String[] PATHS = { "org/macpro/alone/config/applicationContext.xml" };
	private static ApplicationContext appContext = new ClassPathXmlApplicationContext(PATHS);

	public static ApplicationContext getBeanApplicationContext() {
		return appContext;
	}
	public static Object getBean(String beanId){
		return appContext.getBean(beanId);
	}
}
